package com.itheima.bean;

import java.util.Arrays;

public class Student {
    /* 学生姓名:<input type="text" name="username"><br/>
    学生年龄:<input type="number" name="age"><br/>
    学生成绩:<input type="number" name="score"><br/>
    爱好：<input type="checkbox" name="hobby" value="study">学习*/
    private String username;
    private int age;
    private int score;
    private String[] hobby;

    public Student() {

    }

    public Student(String username, int age, int score, String[] hobby) {
        this.username = username;
        this.age = age;
        this.score = score;
        this.hobby = hobby;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public String[] getHobby() {
        return hobby;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    @Override
    public String toString() {
        return "Student{" +
                "username='" + username + '\'' +
                ", age=" + age +
                ", score=" + score +
                ", hobby=" + Arrays.toString(hobby) +
                '}';
    }
}
